package com.example.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

/**
 * 管理员实体炎对应admin表
 */
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@TableName("admin")
public class Admin extends Account {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    // 昵称
    @TableField("name")
    private String name;

    // 头像
    @TableField("avatar")
    private String avatar;

    // 电话
    @TableField("phone")
    private String phone;

    // 邮箱
    @TableField("email")
    private String email;

}